#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QtGui>
#include "tangramwidget.h"

class QAction;

class MainWindow : public QMainWindow
{
    Q_OBJECT
    
public:
    MainWindow(QWidget *parent = 0);
    ~MainWindow();

protected:
    void closeEvent(QCloseEvent *);

private slots:
    void print();
    void print(QPrinter* printer);

private:
    void createMenus();
    void createActions();

    TangramWidget *tangramWidget;
    QAction *printAction;
    QAction *exitAction;
    QMenu *fileMenu;
};

#endif // MAINWINDOW_H
